#ifndef HTBENGINE_H
#define HTBENGINE_H

#include <QObject>
#include <QDebug>
#include <QFile>
//#include "json/json.h"
#include "tcengine.h"

using namespace Json;

class HtbEngine : public TcEngine
{
	Q_OBJECT

	public:
		HtbEngine(Value *settings);
		void clear();
		int addRule(Value rule);
		int delRule(Value rule);
		void debug();
		QString getRuleStats(Value rule,int classID);
		
	private:
		Value *settings;
		int init();
		int ruleCount;
		int defaultID;
		QString qdiscParentID;
		QString filterParentID;
		int tcCmd(QString params);
		
		QString buildFilterCmd(Value rule);
	
};

#endif
